<?php
class FormationBoot extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initLog()
    {
    	// pour avoir les balises HTML correctement terminées />
		$this->bootstrap('layout');
		$layout = $this->getResource('layout');
		$view = $layout->getView();
		$view->doctype('XHTML1_STRICT');
		// fin balises
        $options = $this->getOption('log');
        $log = new Zend_Log;
        $log->addWriter($w = new Zend_Log_Writer_Stream($options['logfile']));
        
        if ($this->getOption('debug') == 0) {
            $w->addFilter(new Zend_Log_Filter_Priority($options['filterlevel']));
        }
        return $log;
    }
}

